package com.zk.cq.constant;

public enum  RobotEnum {

    /**
     * post_type 上报类型
     */
    POST_TYPE_MESSAGE("message","消息"),
    POST_TYPE_NOTICE("notice","群、讨论组变动等通知类事件"),
    POST_TYPE_REQUEST("request","加好友请求、加群请求／邀请"),
    POST_TYPE_META_EVENT("meta_event","元事件"),

    /**
     * sub_type 子类型
     */
    SUB_TYPE_FRIEND("friend","好友消息"),
    SUB_TYPE_NORMAL("normal","群消息"),
    SUB_TYPE_GROUP("group","群临时消息"),
    SUB_TYPE_DISCUSS("discuss","讨论组临时消息"),
    SUB_TYPE_ANOYMOUS("anonymous","匿名消息"),
    SUB_TYPE_NOTICE("notice","群禁止匿名消息"),
    SUB_TYPE_APPROVE("approve","管理员已同意入群"),
    SUB_TYPE_INVITE("invite","管理员邀请入群"),
    SUB_TYPE_LEAVE("leave","主动退群"),
    SUB_TYPE_KICK("kick","成员被踢"),
    SUB_TYPE_KICK_ME("kick_me","登录号被踢"),
    SUB_TYPE_SET("set","设置群管理"),
    SUB_TYPE_UNSET("unset","取消群管理"),
    SUB_TYPE_ADD("add","加群请求"),
    SUB_TYPE_ENABLE("enable","插件启用"),
    SUB_TYPE_DISABLE("disable","插件停用"),

    /**
     * notice_type 通知类型
     */
    NOTICE_TYPE_GROUP_UPLOAD("group_upload","群文件上传"),
    NOTICE_TYPE_GROUP_ADMIN("group_admin","群管理员变动"),
    NOTICE_TYPE_GROUP_DECREASE("group_decrease","群成员减少"),
    NOTICE_TYPE_GROUP_INCREASE("group_increase","群成员增加"),
    NOTICE_TYPE_GROUP_FRIEND_ADD("friend_add","好友添加"),

    /**
     * request_type 请求类型
     */
    REQUEST_TYPE_FRIEND("friend","加好友请求"),
    REQUEST_TYPE_GROUP("group","加群请求／邀请"),

    /**
     * message_type 消息类型
     */
    MESSAGE_TYPE_PRIVATE("private","私聊消息"),
    MESSAGE_TYPE_GROUP("group","群消息"),
    MESSAGE_TYPE_DISCUSS("discuss","讨论组消息"),

    /**
     * meta_event_type 元事件类型
     */
    META_EVENT_TYPE_LIFECYCLE("lifecycle","生命周期"),
    META_EVENT_TYPE_HEARTBEAT("heartbeat","心跳"),
    ;
    public String code;
    private String msg;

    RobotEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
